package com.ruoyi.order.mapper;

import java.util.List;
import com.ruoyi.order.domain.TbProductSpecification;
import org.apache.ibatis.annotations.Param;

/**
 * 商品规格-单价Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public interface TbProductSpecificationMapper 
{
    /**
     * 查询商品规格-单价
     * 
     * @param id 商品规格-单价主键
     * @return 商品规格-单价
     */
    public TbProductSpecification selectTbProductSpecificationById(Long id);

    /**
     * 查询商品规格-单价列表
     * 
     * @param tbProductSpecification 商品规格-单价
     * @return 商品规格-单价集合
     */
    public List<TbProductSpecification> selectTbProductSpecificationList(TbProductSpecification tbProductSpecification);

    /**
     * 新增商品规格-单价
     * 
     * @param tbProductSpecification 商品规格-单价
     * @return 结果
     */
    public int insertTbProductSpecification(TbProductSpecification tbProductSpecification);

    /**
     * 修改商品规格-单价
     * 
     * @param tbProductSpecification 商品规格-单价
     * @return 结果
     */
    public int updateTbProductSpecification(TbProductSpecification tbProductSpecification);

    /**
     * 删除商品规格-单价
     * 
     * @param id 商品规格-单价主键
     * @return 结果
     */
    public int deleteTbProductSpecificationById(Long id);

    /**
     * 批量删除商品规格-单价
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbProductSpecificationByIds(Long[] ids);
    List<TbProductSpecification> selectTbProductSpecificationByIds(@Param("ids") List<Long> ids);}
